xen: Move tsc reliability check until after CPUs have booted
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Sat, 17 Sep 2011 15:22:54 +0000 (16:22 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Sat, 17 Sep 2011 15:22:54 +0000 (16:22 +0100)
commit375b9efe189caa4d1732286bde0a880681f224eb
tree7510e37e15dcc276c06ea6f73f9418349c245758
parent251d889009995640af7c2d53eb018639d77ae98a
xen: Move tsc reliability check until after CPUs have booted

AMD CPUs by default enable X86_FEATURE_TSC_RELIABLE, and depend upon a
later check to disable this feature if TSC drift is detected.
Unfortunately, this check is done in time.c:init_xen_time(), which is
done before any secondary CPUs are brought up, and is thus guaranteed
to succed.

This patch moves the check into its own function, and calls it after
cpus are brought up.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/setup.c
xen/arch/x86/time.c
xen/include/xen/time.h